package com.qf.service.impl;

import com.qf.dao.CartDao;
import com.qf.dao.impl.CartDaoImpl;
import com.qf.pojo.Cart;
import com.qf.service.CartService;

public class CartServiceImpl implements CartService {
    CartDao cartDao = new CartDaoImpl();
    @Override
    public Cart findByUidAndGid(int uid, int pid) {
        return cartDao.findByUidAndGid(uid,pid);
    }

    @Override
    public void insert(Cart cart) {
        cartDao.insert(cart);
    }

    @Override
    public void updateCart(Cart cart) {
        cartDao.updateCart(cart);

    }
}
